﻿namespace _3_NovaAdmin.Domain.ValueObjects;

/// <summary>
/// 修改的值对象
/// </summary>
public class EditAuditInfo<TKey> : _3_NovaAdmin.Domain.Abstractions.ValueObject
{
    public TKey? EditOpId { get; set; }
    public string? EditOpName { get; set; }
    public DateTime? EditOpDate { get; set; }

    public EditAuditInfo(TKey? EditOpId, string? EditOpName, DateTime? EditOpDate)
    {
        this.EditOpId = EditOpId;
        this.EditOpName = EditOpName;
        this.EditOpDate = EditOpDate;
    }

    protected override IEnumerable<object> GetAtomicValues()
    {
        yield return EditOpId;
        yield return EditOpName;
        yield return EditOpDate;
    }
}
